This document describes how to set up a Raspberry Pi for the underlying demo devices described here:
Read those documents and come back to this section as necessary during the build process.
/boot/config.txt
to enable the serial console by putting the following lines at the end of the file:
# Enable serial console
enable_uart=1
minicom -D /dev/tty.usbserial-AH02M4JF
to connect to the Pi Zero and you should see the boot-up sequence and eventually a login prompt
pi
password raspberry
sudo raspi-config
en_GB.UTF-8 UTF-8
en_US.UTF-8 UTF-8
OK
en_US.UTF-8 UTF-8
) and then OK
Each time you will have to go back through the main menu again
If you are configuring the Pi Zero W the
Change Keyboard Layout
option will fail so just skip it.
Generic 101-key PC
and then OK
Other
and then OK
English (US)
and then OK
English (US)
and then OK
The default for the keyboard layout
and then OK
No compose key
and then OK
US United States
and then OK
Yes
when prompted to enable the SSH server
Finish
and then Yes
to reboot
pi
account
sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="demo1-devices"
psk="cisco123"
}
sudo reboot
ifconfig wlan0
If Wi-fi connectivity fails you may have a typo in your wpa-supplicant configuration. Double-check the values as they correspond to your Wi-Fi network and try again as you will need Internet connectivity to perform the rest of the installation.
Now that the Pi is connected to Wi-Fi it will be easier to continue the configuration via SSH. Make note of the IP address from the ifconfig
command output above and connect there.
sudo apt update
sudo apt dist-upgrade
picon
account
sudo su -
adduser picon --disabled-password --quiet --gecos "Pi Console"
usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,spi,i2c,gpio picon
passwd picon
Set a secure password and record it for future reference
pi
account console session and log in as the picon
user with the credentials you just created
pi
account
sudo deluser pi --remove-home --quiet
Back to Chapter 4 RWIS and Car Simulator
Back to Chapter 5 Serial DMS